package com.iot.enums;

public enum CancelContentEnum {
    CHINESE(0,"$X取消了对你关注"),
    TRADITIONAL_CHINESE(1,"$X取消了對你關注"),
    ENGLISH(2,"$X unfollowed you"),
    FRENCH(3,"$X a annulé votre suivi"),
    GERMAN(4,"$X hat Sie abgesagt"),
    ITALIAN(5,"$X cancellato il seguito di te"),
    JAPANESE(6,"$Xがあなたのフォローを解除しました"),
    POLISH(7,"$X anulował twoją uwagę"),
    PORTUGUESE(8,"$X cancelou seu seguimento"),
    RUSSIAN(9,"$X отменил ваше внимание"),
    SPANISH(10,"$X canceló su seguimiento"),
    ARABIC(11,"$X ألغى متابعتك"),
    GREEK(12,"$X ακυρώνει την προσοχή σας"),
    KOREAN(13,"$X는 당신에 대한 관심을 취소했습니다."),
    THAI(14,"$X ยกเลิกการติดตามคุณ"),
    PERSIAN(15,"$X دنبال شما را لغو کرد"),
    TURKISH(16,"$X sizi takip etmeyi iptal etti"),
    VIETNAMESE(17,"$X đã hủy theo dõi bạn"),
    DUTCH(18,"$X annuleert de aandacht voor u"),
    DANISH(19,"$X annullerer din opmærksomhed"),
    CZECH(20,"$X zrušil sledování vás"),
    SWEDISH(21,"$X avbröt din uppmärksamhet"),
    FINNISH(22,"$X peruutti huomiota sinulle"),
    BULGARIAN_LANGUAGE(23,"$X отмени последването за вас"),
    UKRAINIAN(24,"$X скасує вашу увагу"),
    HEBREW(25,"$X ביטל את תשומת הלב שלך");
    private Integer code;

    private String content;


    CancelContentEnum(Integer code, String content) {
        this.code = code;
        this.content = content;
    }

    public Integer getCode() {
        return code;
    }

    public String getContent() {
        return content;
    }

    public static String getByCode(Integer code){
        if (null == code) {
            return CHINESE.getContent();
        }

        for (ApplyContentEnum value : ApplyContentEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getContent();
            }
        }
        return CHINESE.getContent();
    }
}
